<html>
	<head>
		<title>Welcome to GASCIAN</title>
		<?php 
			$this->load->view('partial/headlinks');
		?>
		<link rel="stylesheet" media="all" href="<?php echo base_url();?>application/css/jquery-ui.css">
		<script type="text/javascript" src="<?php echo base_url();?>application/script/lib/jquery-ui.js"></script>
		
	</head>
	<body>
		<div id="doc-container" class="width-normal margin-auto">
			<div id="inner-doc-container" class="">
				<?php 
					$this->load->view('partial/header');
				?>
				<?php 
					$this->load->view('partial/navmenu');
				?>
				<div class="hr margin"></div>
				<div class="table-block">
					<div class="author transition table-block-cell">
						<img alt="" src="<?php echo base_url();?>application/images/user-thumb.png" class="user-thumb"/>
						<span class="author-details">
						<?php 
							echo $userDetail[0]['first_name']."<br/>";
							echo $userDetail[0]['phone_number']."<br/>";
							echo $userDetail[0]['job_title']."<br/>";
							echo $userDetail[0]['org_name']."<br/>";
						?>
						</span>
					</div><!-- author -->
					<div class="search-result table-block-cell">
					<div class="result-container border">
						<form name="registration" class="registration_form" method="POST" enctype="multipart/form-data" action="<?php echo base_url()."journal/uploadjournal"?>" style="margin:10px; width: auto;">
						<h1>Journal Upload</h1><br/>
							<div class="field-row">
								<label for="name">Paper name: </label>
								<input class="required name" name="paper_name" id="name" type="text" size="50">
								<div class="error requiredError">
									The above field is required
								</div>
								<div class="error correctData">
									Please enter correct value
								</div>
							</div><!-- field-row -->
							
							<div class="field-row">
								<label for="abstract">Abstract: </label>
								<textarea  class="required"  rows="4" cols="50" name="abstract"></textarea>
								<div class="error requiredError">
									The above field is required
								</div>
							</div><!-- field-row -->

													
							<div class="field-row">
								<label for="pub_date">Pub date:</label>
								<input class="required" name="pub_date" id="pub_date" maxlength="50" value="" type="text">
								<div class="error requiredError">
									The above field is required
								</div>
							</div><!-- field-row -->
																			
							<div class="field-row">
								<label for="isbn">ISSN:</label>
								<input  name="isbn" id="isbn" maxlength="50" type="text">
							</div><!-- field-row -->
																									
							<div class="field-row">
								<label for="pages">Number of Pages:</label>
								<input  class="required numeric"  name="pages" id="pages" maxlength="5" type="text">
								<div class="error requiredError">
									The above field is required
								</div>
								<div class="error correctData">
									Please enter correct value
								</div>
							</div><!-- field-row -->
					
							<!-- <div class="field-row">
								<label for="main_subject_ref">Subject:</label>
								<?php echo form_dropdown('main_subject_ref', $mainSubjectsSelectList)?>
							</div> --><!-- field-row -->
					
							<div class="field-row">
								<label for="subject_ref">Category:</label>
								<?php echo form_dropdown('subject_ref', $subjectsSelectList)?>
							</div><!-- field-row -->
							
												
							<fieldset>	
							<legend>Author 1:</legend>																								
								<div class="field-row">
									<label for="author1name">Name:</label>
									<input name="author1name" id="author1name" type="text" value="<?php echo $this->sessionfunctions->firstName();?>" readonly="readonly" >
									
								</div><!-- field-row -->
							</fieldset>		
							<fieldset>	
								<legend>Author 2:</legend>
								<div class="field-row">
									<label for="author2name">Name:</label>
									<input class="required name"  name="author2name" id="author2name" type="text">
									<div class="error requiredError">
										The above field is required
									</div>
									<div class="error correctData">
										Please enter correct value
									</div>
								</div><!-- field-row -->
								
								<div class="field-row">
									<label for="author2email">Email:</label>
									<input  class="required email"  name="author2email" id="author2email" type="text">
									<div class="error requiredError">
										The above field is required
									</div>
									<div class="error correctData">
										Please enter correct value
									</div>
								</div><!-- field-row -->
								
								<div class="field-row">
									<label for="author2phone">Phone:</label>
									<input  class="required numeric"  name="author2phone" id="author2phone" type="text">
									<div class="error requiredError">
										The above field is required
									</div>
									<div class="error correctData">
										Please enter correct value
									</div>
								</div><!-- field-row -->	
								
								<div class="field-row">
									<label for="author2address">Address:</label>
									<textarea  class="required"  rows="4" cols="50" name="author2address" id="author2address"></textarea>
									<div class="error requiredError">
										The above field is required
									</div>
									<div class="error correctData">
										Please enter correct value
									</div>
								</div><!-- field-row -->	
								
								<div class="field-row">
									<label for="author2designation">Designation:</label>
									<input  class="required"  name="author2designation" id="author2designation" type="text">
									<div class="error requiredError">
										The above field is required
									</div>
									<div class="error correctData">
										Please enter correct value
									</div>
								</div><!-- field-row -->	
								<p>Auther will be get notified and approved after submitting the details</p>																							
							</fieldset>
							<fieldset>	
								<legend>Author 3:</legend>
								<div class="field-row">
									<label for="author3name">Name:</label>
									<input class="required name" name="author3name" id="author3name" type="text">
									<div class="error requiredError">
										The above field is required
									</div>
									<div class="error correctData">
										Please enter correct value
									</div>
								</div><!-- field-row -->
								
								<div class="field-row">
									<label for="author3email">Email:</label>
									<input  class="required email"  name="author3email" id="author3email" type="text">
									<div class="error requiredError">
										The above field is required
									</div>
									<div class="error correctData">
										Please enter correct value
									</div>
								</div><!-- field-row -->
								
								<div class="field-row">
									<label for="author3phone">Phone:</label>
									<input  class="required numeric"  name="author3phone" id="author3phone" type="text">
									<div class="error requiredError">
										The above field is required
									</div>
									<div class="error correctData">
										Please enter correct value
									</div>
								</div><!-- field-row -->	
								
								<div class="field-row">
									<label for="author3address">Address:</label>
									<textarea  class="required"  rows="4" cols="50" name="author3address" id="author3address"></textarea>
									<div class="error requiredError">
										The above field is required
									</div>
									<div class="error correctData">
										Please enter correct value
									</div>
								</div><!-- field-row -->	
								
								<div class="field-row">
									<label for="author3designation">Designation:</label>
									<input  class="required"  name="author3designation" id="author3designation" type="text">
									<div class="error requiredError">
										The above field is required
									</div>
									<div class="error correctData">
										Please enter correct value
									</div>
								</div><!-- field-row -->	
								<p>Auther will be get notified and approved after submitting the details</p>																							
							</fieldset>
														
							
							
								<!-- 			
							<div class="field-row" style="clear:both;">
								<label for="imageUpload">Upload Image:</label>
								<input name="imageUpload" id="imageUpload" type="File">
							</div> --><!-- field-row -->
							<fieldset>
								<legend>Journal upload</legend>
								<div class="field-row">
									<label for="journalUpload">Upload Journal Document:</label>
									<input name="journalUpload" id="journalUpload" type="File">
								</div><!-- field-row -->
								
								<p><a target="_NEW" href="<?php echo base_url();?>application/instructions/journal_template.pdf">Click here</a> to read journal upload instructions
								</p>
							</fieldset>
						<br/>
					    <input class="button button-primary" value="Upload" name="Submit" type="submit">
						<br/><br/>
					</form>
				</div><!-- result-container -->
				</div><!-- search-result -->
			</div><!-- table-block -->
		</div><!-- inner-doc-container -->
	</div><!-- doc-container -->
	<?php 
		$this->load->view('partial/footer');
	?>	
	 <script>
$(function() {
$( "#pub_date" ).datepicker({"dateFormat":"yy-mm-dd"});
});

$(document).ready(function(){
	 bindValidation("registration_form");
});
</script>
	</body>
</html>
